#include "TestColor.h"
#include <glad/glad.h>
#include "Imgui/imgui.h"
namespace Test {
	TestColor::TestColor():m_clearColor{0.2f,0.3f,0.4f,1.0f}
	{
	}
	TestColor::~TestColor()
	{
	}
	void TestColor::Enter()
	{
		//std::cout << "TestColor::Enter()" << std::endl;

	}
	void TestColor::Leave()
	{
		//std::cout << "TestColor::Leave()" << std::endl;

	}
	void TestColor::OnRender()
	{
		//std::cout << "TestColor::OnRender()" << std::endl;
		glClearColor(m_clearColor[0], m_clearColor[1], m_clearColor[2], m_clearColor[3]);
		glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);//This is Clear

	}

	void TestColor::OnImguiRender()
	{
		//std::cout << "TestColor::OnImguiRender()" << std::endl;
		ImGui::ColorEdit4("Clear Color", m_clearColor);
	}

	void TestColor::Update(float deltaTime)
	{
		//std::cout << "TestColor::Update(float deltaTime) DeltaTime"<<deltaTime << std::endl;
	}

}
